package gxdlxy.zx2201.case4_7;

public class Staff {
    String name;
    String address;
    String workID;
    protected double salary;
    double workAge;

    Staff(double salary) {
        this.salary = salary;
    }

    void setSalary(double salary) {
        this.salary = salary;
    }

    void addSalary(){
        this.salary = this.salary * 1.1;
    }
}

